package com.jiaai.cloud.order.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 充值订单
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-07
 */
@TableName("t_pay_order")
public class TPayOrder extends Model<TPayOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
	@TableId(value="orderNo", type= IdType.INPUT)
	private String orderNo;

	/**
	 * 订单标题
	 */
	private  String subject;
    /**
     * 订单描诉
     */
	private String body;
    /**
     * 充值金额
     */
	private BigDecimal money;
    /**
     * 对应的金币数量
     */
	private Integer gold;
    /**
     * 用户ID
     */
	private String userId;
    /**
     * 支付平台(1支付宝 2微信)
     */
	private Integer paType;
    /**
     * 支付状态(-1支付失败,0待支付 1支付成功)
     */
	private Integer status;
	private Date time;


	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getGold() {
		return gold;
	}

	public void setGold(Integer gold) {
		this.gold = gold;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getPaType() {
		return paType;
	}

	public void setPaType(Integer paType) {
		this.paType = paType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	@Override
	protected Serializable pkVal() {
		return this.orderNo;
	}

}
